/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import java.io.Serializable;

/**
 *
 * @author antonio
 */
public class Wrapper implements Serializable {
    
    private String string1, string2;
    private int amount;
    
    public Wrapper(String string1, String string2, int amount) {
        this.string1 = string1;
        this.string2 = string2;
        this.amount = amount;
    }

    public String getString1() {
        return string1;
    }

    public void setString1(String string1) {
        this.string1 = string1;
    }

    public String getString2() {
        return string2;
    }

    public void setString2(String string2) {
        this.string2 = string2;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + (this.string1 != null ? this.string1.hashCode() : 0);
        hash = 71 * hash + (this.string2 != null ? this.string2.hashCode() : 0);
        hash = 71 * hash + this.amount;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Wrapper other = (Wrapper) obj;
        if ((this.string1 == null) ? (other.string1 != null) : !this.string1.equals(other.string1)) {
            return false;
        }
        if ((this.string2 == null) ? (other.string2 != null) : !this.string2.equals(other.string2)) {
            return false;
        }
        if (this.amount != other.amount) {
            return false;
        }
        return true;
    }

}
